<?php if (isset($_SERVER['HTTP_USER_AGENT']) && !strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6')) echo '<?xml version="1.0" encoding="UTF-8"?>'. "\n"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>"
	xml:lang="<?php echo $lang; ?>">
<head>
<title><?php echo $title; ?></title>
<base href="<?php echo $base; ?>" />
<meta property="og:url" content="http://xuankhanhcamera.vn">
<meta property="og:title" content="Xuân Khánh Camera">
<meta property="og:description" content="Máy ảnh kỹ thuật số - Thế giới phụ kiện máy ảnh">
<meta property="og:image" content="http://xuankhanhcamera.vn/image/data/logo/fb-image.jpg">
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="300">
<meta property="og:image:height" content="621">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php if ($description) { ?>
<meta name="description" content="<?php echo $description; ?>" />
<?php } ?>
<?php if ($keywords) { ?>
<meta name="keywords" content="<?php echo $keywords; ?>" />
<?php } ?>
<?php if ($icon) { ?>
<link href="<?php echo $icon; ?>" rel="icon" />
<?php } ?>
<?php foreach ($links as $link) { ?>
<link href="<?php echo $link['href']; ?>"
	rel="<?php echo $link['rel']; ?>" />
<?php } ?>
<link rel="stylesheet" type="text/css"
	href="catalog/view/theme/default/stylesheet/stylesheet.css" />
<?php foreach ($styles as $style) { ?>
<link rel="<?php echo $style['rel']; ?>" type="text/css"
	href="<?php echo $style['href']; ?>"
	media="<?php echo $style['media']; ?>" />
<?php } ?>
<script type="text/javascript"
	src="catalog/view/javascript/jquery/jquery-1.7.1.min.js"></script>
<script type="text/javascript"
	src="catalog/view/javascript/jquery/ui/jquery-ui-1.8.16.custom.min.js"></script>
<link rel="stylesheet" type="text/css"
	href="catalog/view/javascript/jquery/ui/themes/ui-lightness/jquery-ui-1.8.16.custom.css" />
<script type="text/javascript"
	src="catalog/view/javascript/jquery/ui/external/jquery.cookie.js"></script>
<script type="text/javascript"
	src="catalog/view/javascript/jquery/colorbox/jquery.colorbox.js"></script>
<link rel="stylesheet" type="text/css"
	href="catalog/view/javascript/jquery/colorbox/colorbox.css"
	media="screen" />
<script type="text/javascript"
	src="catalog/view/javascript/jquery/tabs.js"></script>
<script type="text/javascript" src="catalog/view/javascript/common.js"></script>
<?php foreach ($scripts as $script) { ?>
<script type="text/javascript" src="<?php echo $script; ?>"></script>
<?php } ?>
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/ie7.css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/ie6.css" />
<script type="text/javascript" src="catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js"></script>
<script type="text/javascript">
DD_belatedPNG.fix('#logo img');
</script>
<![endif]-->
<?php echo $google_analytics; ?>
</head>
<body>
    <?php if(false && !isset($_SESSION['popup_showed']) && ($route == '' || $route == '/')){?>
	<div id="colorbox" style="padding-bottom: 21px; padding-right: 42px; display: block; top: 30px; left: 396px; position: fixed; width: 515px; height: 541px; z-index: 999;">
		<div id="cboxWrapper" style="height: 562px; width: 557px; background: transparent;">
			<div style="clear: left;">
				<div id="cboxContent" style="float: left; width: 515px; height: 541px; background: transparent;">
					<div id="cboxLoadedContent" style="width: 515px; overflow: auto; height: 513px;">
						<div id="inline_advPopup" style="padding: 10px; position: relative">
							<a id="ctl00_header1_pupopinline" title="Khuyến mại" href="/tin-cong-ty" target="_blank">
							    <img src="/image/data/banner/pop.png" width="487" height="472" alt="Khuyến mại">
							</a>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script>
	  $(document).ready(function(){
		$('html').click(function() {
			$('#cboxOverlay').css('opacity', '').css('z-index', '').fadeOut('slow');
			$('#colorbox').fadeOut('fast').remove();
		});
		$('#inline_advPopup').click(function(event){
		    event.stopPropagation();
		});
		$('#cboxOverlay').css('opacity', '0.9').css('z-index', '998').show();
	  });
	</script>
    <?php }?>
    <?php $_SESSION['popup_showed']=1;?>
	<div id="fb-root"></div>
	<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=594550840617882";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
	<div id="container">
		<div id="header">
  <?php if ($logo) { ?>
  <div id="logo">
				<a href="/"><img src="<?php echo $logo; ?>"
					title="<?php echo $name; ?>" alt="<?php echo $name; ?>" /></a>
			</div>
  <?php } ?>
  <?php echo $language; ?>
  <?php echo $currency; ?>
  <?php echo $cart; ?>
  <div id="search">
    <?php if ($filter_name) { ?>
    <input type="text" name="filter_name"
					value="<?php echo $filter_name; ?>" />
    <?php } else { ?>
    <input type="text" name="filter_name"
					value="<?php echo $text_search; ?>" onclick="this.value = '';"
					onkeydown="this.style.color = '#000000';" />
    <?php } ?>
    <div class="button-search">Tìm kiếm</div>
			</div>
			<div id="head-address">
				<span><?php echo $text_address; ?><?php echo nl2br($this->config->get('config_address')); ?></span>
			</div>
			<div id="welcome">
    <?php if (!$logged) { ?>
    <?php echo $text_welcome; ?>
    <?php } else { ?>
    <?php echo $text_logged; ?>
    <?php } ?>
  </div>
			<!-- <div class="links">
    <a href="/"><?php echo $text_home; ?></a>
    <a href="<?php echo $wishlist; ?>" id="wishlist-total"><?php echo $text_wishlist; ?></a>
    <a href="<?php echo $account; ?>"><?php echo $text_account; ?></a>
    <a href="<?php echo $shopping_cart; ?>"><?php echo $text_shopping_cart; ?></a>
    <a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a>
  </div> -->
			<a class="fanpage" href="https://www.facebook.com/xuankhanhcamera">Facebook
				Page</a>
			<div class="links fb-like"
				data-href="https://www.facebook.com/xuankhanhcamera"
				data-layout="standard" data-action="like" data-show-faces="true"
				data-share="false"></div>
		</div>
		<div id="menu">
			<ul>
  <?php if($home_active == 1){ ?>
   <li class="active"><a href="/"><?php echo $text_home; ?></a></li>
   <?php } else { ?>
  <li><a href="/"><?php echo $text_home; ?></a></li>
  <?php } ?>
  <?php if ($categories) { ?>
  <?php foreach ($categories as $category) { ?>
	<?php if($category['category_id'] == $category_id){ ?>
     <li><a class="active" href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a>
	<?php }else{ ?>
	 <li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a>
	<?php } ?> 
      <?php if ($category['children']) { ?>
      <div class="children-menu">
							<ul>
          <?php foreach ($category['children'] as $childCat) { ?>
          <li><a href="<?php echo $childCat['href']; ?>">●&nbsp;<?php echo $childCat['name']; ?></a>
            <?php if ($childCat['children']) { ?>
            <div class="subchildren-menu">
										<ul>
              <?php foreach ($childCat['children'] as $subChildCat) { ?>
                <li><a href="<?php echo $subChildCat['href']; ?>">●&nbsp;<?php echo $subChildCat['name']; ?></a>
											</li>
              <?php } ?>
              </ul>
									</div>
            <?php } ?>
          </li>
          <?php } ?>
        </ul>
						</div>
      <?php } ?>
    </li>
  <?php } ?>
  <?php } ?>
	<?php if ($categoriesnews) { ?>
    <?php foreach ($categoriesnews as $cat) { ?>
	 <?php if($cat['cat_id'] == $cat_id){ ?>
		<li><a class="active" href="<?php echo $cat['href']; ?>"><?php echo $cat['name']; ?></a>
	 <?php }else{ ?>
	 	<li><a href="<?php echo $cat['href']; ?>"><?php echo $cat['name']; ?></a>
	<?php } ?>	
      <?php if ($cat['children']) { ?>
      <div>
								<ul>
        <?php foreach ($cat['children'] as $childCat) { ?>
          <li><a href="<?php echo $childCat['href']; ?>"><?php echo $childCat['name']; ?></a>
									</li>
        <?php } ?>
        </ul>
							</div>
      <?php } ?>
    </li>
    <?php } ?>
	<?php } ?>
  <?php if($informations){ ?>
  <?php foreach ($informations as $information) { ?>
  	<?php if($information['id'] == $information_id){?>
  	  <li><a class="active" href="<?php echo $information['href']; ?>"><?php echo $information['title']; ?></a></li>
  	<?php }else{?>
      <li><a href="<?php echo $information['href']; ?>"><?php echo $information['title']; ?></a></li>
    <?php } ?>
  <?php } ?>
  <?php } ?>
  </ul>
</div>
<div id="notification"></div>